package authoritah.ui;

import javax.swing.JPanel;

import authoritah.ui.event.EventAttendanceController;
import authoritah.ui.eventtype.EventTypeController;
import authoritah.ui.member.MemberMainController;
import authoritah.ui.reports.lottingrights.LottingRightsController;
import authoritah.ui.spend.SpendController;


public class ParityController {

	private ParityView view;
	
	private MemberMainController memberMainController;
	private EventAttendanceController eventAttendanceController;
	private EventTypeController eventTypeController;
	private SpendController spendController;
	private LottingRightsController lottingRightsController;

	public ParityController() {	
		memberMainController = new MemberMainController();
		eventAttendanceController = new EventAttendanceController();
		eventTypeController = new EventTypeController();
		spendController = new SpendController();
		lottingRightsController = new LottingRightsController();		
		
		view = new ParityView(new JPanel(), 
				memberMainController.getDisplayComponent(), 
				eventAttendanceController.getDisplayComponent(),
				eventTypeController.getDisplayComponent(),
				spendController.getDisplayComponent(),
				lottingRightsController.getDisplayComponent());
	}

	public ParityView getView() {
		return view;
	}
}
